<?php

$rows = array( array('出库单号','材料名称','品牌','规格','单位', '数量', '单价', '金额', 
				'出库时间', '出库类型', '仓库', '审批流程', '金额', ) );
if($list) foreach($list as $ware){
	$tmp = array($ware['bound_sno'], $ware['sno'], $ware['name'], $ware['brand'], $ware['specific'], $ware['unit'],
			$ware['amount'], fnum($ware['price']), fnum($ware['price']*$ware['amount']), date('Y-m-d H:i', $ware['addtime']),
			BoundHelper::type2txt($ware['type']), $ware['warehouse'], 
			join(' ', UserHelper::getNamesByIds(explode(',',$ware['reviewers']))), $ware['remark '] );
	
	$rows[] = $tmp;
}
Exporter::csv($rows, '出库明细');

?>
